home *** CD-ROM | disk | FTP | other *** search
- Path: news.interlog.com!news
- From: Ray Zemaitis <zemaitis@interlog.com>
- Newsgroups: comp.lang.c
- Subject: Borland C 4.5 - DialogBox error
- Date: Thu, 08 Feb 1996 08:05:46 -0800
- Organization: InterLog Internet Services
- Message-ID: <311A1F5A.4F2C@interlog.com>
- NNTP-Posting-Host: zemaitis.interlog.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6b (Win16; I)
-
- Hi!
-
- I can get this code to compile and run from the Borland IDE,
- but when I try to run the exe from an icon, it barfs.
-
-
-
- if (DialogBox(hInst, "HH_EDIT_DLG", hWndSaved, lpProcDlg) == -1)
- {
- // I get this error every time!!!!!!!!!!
- fprintf(log, "DIALOGBOX FAILS!!!\n");
- }
- else
- fprintf(log, "DIALOGBOX ok\n");
-
- The online documentation just says -1 is returned when unable to
- create the DialogBox, but gives no possible causes.
- I am quite certain all required DLL's are present. If anyone can
- point me in the right direction, I would greatly appreciate it.
- ( I am running NT 3.50, compiling 16-bit "C").
-
- Thanks,
- Ray
-
- zemaitis@interlog.com
-